package com.dartfar.mail.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.dartfar.base.model.T_User;

//邮件发送状态
@Entity
@Table(name = "T_Mail_SendState")
public class SendState {
	
	private int id;

	private T_User sendUser;

	private Mail mail;

	private String receiveNames;

	private Date sendDate = new Date();

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@OneToOne
	@JoinColumn(name = "sendUserId")
	public T_User getSendUser() {
		return sendUser;
	}

	public void setSendUser(T_User sendUser) {
		this.sendUser = sendUser;
	}

	@OneToOne
	@JoinColumn(name = "mailId")
	public Mail getMail() {
		return mail;
	}

	public void setMail(Mail mail) {
		this.mail = mail;
	}

	public String getReceiveNames() {
		return receiveNames;
	}

	public void setReceiveNames(String receiveNames) {
		this.receiveNames = receiveNames;
	}

	public Date getSendDate() {
		return sendDate;
	}

	public void setSendDate(Date sendDate) {
		this.sendDate = sendDate;
	}

	
	
}
